package Demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-18
 * Time: 16:23
 */
public class Test {
    public void drawMap(Shapes shape){
        shape.draw();
    }
    public static void main(String[] args) {
        Flower flower = new Flower();
        Square square = new Square();

        Shapes[] shape = new Shapes[]{flower,square};
        for (Shapes s:shape) {
            s.draw();
        }
    }
}
